Home:ALL Converter>unix2dos command failed because of ^@ symbol present in the file

unix2dos command failed because of ^@ symbol present in the file

Ask Time:2022-03-23T14:15:11         Author:Prasanth

Json Formatter

I'm facing below issue when performing unix2dos conversion

unix2dos: Binary symbol found at line 166
unix2dos: Skipping binary file Sample.txt

I can find ^@ characters in the file.

I can do -f which is force conversion of binary files

Any idea apart from this?

I am able to replace the characters using vi, but not with the script. Need to handle in the script, please let me know.

Author:Prasanth,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/71582594/unix2dos-command-failed-because-of-symbol-present-in-the-file
yy